import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/check-repository/list',
    method: 'get',
    params
  })
}

export function getInfo(params) {
  return request({
    url: '/check-repository/info',
    method: 'get',
    params
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/check-repository/addOrUpdate',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/check-repository/remove/'+data,
    method: 'delete',
    data
  })
}

export function getWriteOffList(params) {
  return request({
    url: '/check-repository/writeOffList',
    method: 'get',
    params
  })
}

export function writeOff(data) {
  return request({
    url: '/check-repository/writeOff',
    method: 'post',
    data
  })
}

export function writeOffRemarks(data) {
  return request({
    url: '/check-repository/writeOff-remarks',
    method: 'post',
    data
  })
}

export function queryDepositoryNumList(params) {
  return request({
    url: '/check-repository/depository-num-list',
    method: 'get',
    params
  })
}